package com.zlm.design.combined;

import lombok.Data;

/**
 * @author zlm
 * @date 2025/4/21
 */
@Data
public class District implements PopulationNode{
    private String name;

    private int population;
    public District(String name,int population) {
        this.name = name;
        this.population = population;
    }

    @Override
    public int computePopulation() {
        return population;
    }
}
